package com.hh.adapters;

import java.util.ArrayList;

import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;

	public class ViewHolder {

		SparseArray<View> mSparseArrayHolderViews;
		SparseArray<View> mSparseArrayHolderViewsNotInCDT;
		ArrayList<View> mListHoldersViews;
		int mRowPosition;
		static ArrayList<String> mListOfTags;
		//init block
		static {
			mListOfTags=new ArrayList<String>();
		}
		
		public ViewHolder() {
			mSparseArrayHolderViews=new SparseArray<View>();
			mSparseArrayHolderViewsNotInCDT=new SparseArray<View>();
			mListHoldersViews=new ArrayList<View>();
		}
		
		public static ArrayList<String> getAllLayoutTags(View v){

			ViewGroup vg = (ViewGroup) v;
			for (int i = 0; i < vg.getChildCount(); ++i) {
				View child = vg.getChildAt(i);
				if(child.getTag()!=null)
					mListOfTags.add(child.getTag().toString());

				if(child instanceof ViewGroup)
					getAllLayoutTags(child);

			}
			return mListOfTags;
		}
	
}
